package com.dxy.yesas2020goals.study.others.enumlearn.v1;

/**
 * @author victorydeng
 * @Classname MySeasonEnum
 * @Description TODO
 * @Date 2020/5/12 10:42
 * @Created by victorydeng
 */
public enum MySeasonEnum {
    SPRING() {
        @Override
        public MySeasonEnum getNextSeason() {
            return SUMMER;
        }
    }, SUMMER() {
        @Override
        public MySeasonEnum getNextSeason() {
            return AUTUMN;
        }
    }, AUTUMN() {
        @Override
        public MySeasonEnum getNextSeason() {
            return WINTER;
        }
    }, WINTER() {
        @Override
        public MySeasonEnum getNextSeason() {
            return SPRING;
        }
    };

    public abstract MySeasonEnum getNextSeason();
}